<?php $__env->startSection('content'); ?>
<div class="container">


<div class="row">
<p><a class="btn btn-primary" href="<?php echo e(route('books.create')); ?>" role="button"><?php echo e(__('Add Book')); ?></a></p>
</div>

    <div class="row">

<ul class="list-unstyled booklist">

	<?php $__currentLoopData = $books; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $book): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
		<li class="media">
		    <a title="edit the chapter of <?php echo e($book->name); ?>" href="<?php echo e(route('book_chapter.index',['book'=>$book->id])); ?>"><img class="mr-3" src="<?php echo e($book->cover); ?>" style="width:100px;" alt="Generic placeholder image"></a>
		    <div class="media-body">
		      <h5 class="mt-0 mb-1"><a href="<?php echo e(route('books.edit',['book'=>$book->id])); ?>"><?php echo e($book->name); ?></a></h5>
		      <?php echo e($book->description); ?>

		    </div>
		</li>        
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
  
</ul>

    </div>

    <?php echo e($books->links('vendor.pagination.bootstrap-4')); ?>


</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>